﻿using System;
namespace IBNet
{
   /// <summary>
   /// Market Order
   /// </summary>
   public class MarketOrder : Order
   {
      /// <summary>
      /// Creates a new MarketOrder.
      /// </summary>
      public MarketOrder()
      {
         base.OrderType = OrderType.Market;
      }

      /// <summary>
      /// Creates a new MarketOrder.
      /// </summary>
      /// <param name="actionSide">The action side, Buy or Sell.</param>
      /// <param name="quantity">The quantity for this order.</param>
      public MarketOrder(ActionSide actionSide, int quantity)
      {
         base.OrderType = OrderType.Market;
         base.TotalQuantity = quantity;
         base.ActionSide = actionSide;
      }
   }
}